package com.sora.controller.api;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Api(value = "控制视图层跳转")
@Controller
public class IndexController {

    @ApiOperation(value = "跳转主页--sora")
    @GetMapping("/index")
    public String index() {
        return "index";
    }

    @ApiOperation(value = "跳转注册页--sora")
    @GetMapping("/register")
    public String register() {
        return "register";
    }

    @ApiOperation(value = "跳转登录页")
    @GetMapping("/login")
    public String login() {
        return "login";
    }

    @ApiOperation(value = "跳转更新页")
    @GetMapping("/update")
    public String update() {
        return "update";
    }
}
